home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 4 / BBS in a Box - Macintosh - Volume IV (January 1992) (BBS in a Box).iso / Files / Game / C / CORE! 1.1.CPT / Core! 1.1 / Battle Programs / Standard / gemini < prev    next >
Encoding:
Text File  |  1989-07-18  |  459 b   |  16 lines  |  [TEXT/MARS]

  1. ; GEMINI copies itself forward about 100 cells
  2. ; and then jumps to the copy.
  3. ; GEMINI has required considerable modification
  4. ;  to run under Core War '89.  Jon Newman
  5. offset  equ 100
  6. source  dat 0,0
  7. dest    dat 0,source+offset
  8. loop             add #1,source
  9.                     add #1,dest
  10. start   mov @source,@dest
  11.                     cmp #last-source,source
  12.                     jmp loop,0
  13. done    mov #0,source+offset
  14.                     mov #source-dest+offset,dest+offset
  15. last                jmp start+offset,0
  16. end                 start